{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}

<div class="links">
  <ul>
    <li class="thumbnail row">
      <a {{bindAttr class=":corner-icon :span1 view.parentView.isMoving:hidden"}} href="#" {{action deleteWidget target="view"}}>
        <i class="icon-remove-sign icon-large"></i>
      </a>
      <div class="caption span10"> {{view.title}}</div>

      <div class="widget-content" >
        <table>
          <!--jobTracker-->
          <tr>
            <td><a href="#" {{action showDetails view.model.jobTracker.host}}>{{t services.service.summary.jobTracker}}</a></td>
          </tr>
          <!--taskTrackers-->
          <tr>
            <td><a href="#" {{action filterHosts view.component}}>{{view.model.taskTrackersTotal}} {{t dashboard.services.mapreduce.taskTrackers}}</a></td>
          </tr>
          <!--jobTracker Web UI-->
          <tr>
            <td><a {{bindAttr href="view.webUrl"}} target="_blank">{{t services.service.summary.jobTrackerWebUI}}</a></td>
          </tr>
        </table>
      </div>

      <div class="link-button">
          {{#if view.model.quickLinks.length}}
            {{#view App.QuickViewLinks contentBinding="view.model"}}
              {{#if view.isLoaded}}
                <div class="btn-group">
                  <a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
                    {{t common.more}}
                    <span class="caret"></span>
                  </a>
                  <ul class="dropdown-menu">
                    {{#each view.quickLinks}}
                      <li><a {{bindAttr href="url"}} target="_blank">{{label}}</a></li>
                    {{/each}}
                  </ul>
                </div>
              {{else}}
                <div class="spinner"></div>
              {{/if}}
            {{/view}}
          {{/if}}
      </div>
    </li>
  </ul>
</div>